package com.example.lianguisystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("T_LIAN_GUI_PAN_DIAN_RECORD")
@ApiModel("莲桂盘点表")
public class PanDianRecord {
    @TableId(type = IdType.ASSIGN_ID)
    String id;
    @ApiModelProperty("工作中心id")
    Integer workshop;
    @ApiModelProperty("判断时间")
    String recordDate;
    @ApiModelProperty("标签id")
    String labelId;
    String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date createDate;
    String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date updateDate;

    @ApiModelProperty("0-已扫描未提交 1-已提交")
    Integer status;

    @ApiModelProperty("盘点次数")
    String panDianTime;

    @TableField(exist = false)
    Double weight;
    @TableField(exist = false)
    String designNo;
    @TableField(exist = false)
    String cpTypeNo;
    @TableField(exist = false)
    String machine;
    @TableField(exist = false)
    String label;
    @TableField(exist = false)
    String workshopName;
}
